/* Custom CSS for Marathi Biodata Maker */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header-section {
    background: linear-gradient(135deg, #FF6B35 0%, #FFFFFF 50%, #FF6B35 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-section {
    text-align: center;
}

.brand-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.ganesha-section {
    margin-bottom: 15px;
}

.ganesh-symbol {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 10px;
}

.ganesha-text {
    font-size: 1.5rem;
    color: #8B4513;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0;
}

.contact-info {
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(255,107,53,0.2);
    border: 1px solid rgba(255,107,53,0.3);
}

.contact-info i {
    color: #FF6B35;
    margin-right: 8px;
}

#clearData {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

#clearData:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.step-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header h2 {
    color: #FF6B35;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Design Selection Cards */
.design-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.design-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.design-card.selected {
    border: 3px solid #FF6B35;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
}

.design-preview {
    margin-bottom: 25px;
}

.preview-header {
    margin-bottom: 20px;
}

.preview-header i {
    font-size: 3rem;
    color: #FF6B35;
    margin-bottom: 10px;
}

.preview-header h4 {
    color: #333;
    font-weight: 600;
}

.preview-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    justify-content: center;
    min-height: 120px;
}

.photo-placeholder {
    width: 60px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
}

.photo-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.content-lines {
    flex: 1;
}

.content-lines.full-width {
    width: 100%;
}

.line {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.line:nth-child(odd) {
    width: 100%;
}

.line:nth-child(even) {
    width: 80%;
}

.btn-customize {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-customize:hover {
    background: #E55A2B;
    transform: scale(1.05);
}

/* Form Styles */
.biodata-form .card {
    border: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    margin-bottom: 25px;
}

.biodata-form .card-header {
    background: red !; linear-gradient(135deg, #FF6B35 0%, #FF8A50 100%) !important;
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
}

.card-header{
    background: red !important;
}
.biodata-form .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.biodata-form .card-header i {
    margin-right: 10px;
}

.biodata-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.biodata-form .form-control,
.biodata-form .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.biodata-form .form-control:focus,
.biodata-form .form-select:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Photo Upload Styles */
.photo-upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: #FF6B35;
    background-color: #FFF5F0;
}

.photo-upload-area i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.photo-preview img {
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

/* Preview Styles */
.biodata-preview {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.biodata-template {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    line-height: 1.6;
}

.biodata-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #FF6B35;
}

.biodata-header .ganesha-blessing {
    font-size: 1.5rem;
    color: #8B4513;
    font-weight: 600;
    margin-bottom: 15px;
}

.biodata-header .main-title {
    font-size: 2rem;
    color: #FF6B35;
    font-weight: 700;
    margin-bottom: 10px;
}

.biodata-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.biodata-photo {
    flex-shrink: 0;
}

.biodata-photo img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #FF6B35;
}

.biodata-details {
    flex: 1;
}

.detail-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.3rem;
    color: #FF6B35;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFE0D6;
    padding-bottom: 5px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

.detail-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    margin-right: 15px;
}

.detail-value {
    color: #666;
    flex: 1;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Download Section */
.download-options {
    text-align: center;
}

.download-options .btn {
    transition: all 0.3s ease;
    padding: 15px 20px;
}

.download-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid #FF6B35;
}

.footer-section h5 {
    color: #FF6B35;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-keywords {
    color: #bbb;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-logo, .footer-logo {
        max-height: 60px;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .ganesha-text {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .design-card {
        padding: 20px 15px;
    }
    
    .preview-content {
        flex-direction: column;
        align-items: center;
    }
    
    .biodata-content {
        flex-direction: column;
        text-align: center;
    }
    
    .biodata-preview {
        padding: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        margin-bottom: 12px;
    }
    
    .detail-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 3px;
    }
    
    .preview-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .biodata-form .card-body {
        padding: 15px;
    }
    
    .download-options .row {
        flex-direction: column;
    }
}

/* Utility Classes */
.text-marathi {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.border-orange {
    border-color: #FF6B35 !important;
}

.bg-orange {
    background-color: #FF6B35 !important;
}

.text-orange {
    color: #FF6B35 !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles for PDF */
@media print {
    body * {
        visibility: hidden;
    }
    
    .biodata-preview,
    .biodata-preview * {
        visibility: visible;
    }
    
    .biodata-preview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
}

/* Download Container Styles */
.download-container {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif !important;
}

.biodata-download-template {
    color: #333 !important;
}

.biodata-download-template * {
    box-sizing: border-box !important;
}

/* Ensure text is readable on background */
.biodata-download-template .detail-section {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.biodata-download-template .biodata-header {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.biodata-download-template .biodata-footer {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 10px !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Responsive text sizing for download */
@media screen and (max-width: 794px) {
    .download-container {
        transform: scale(0.8);
        transform-origin: top left;
    }
}










 .card-box {
      background: #fff;
      border-radius: 10px;
      padding: 18px;
      max-width: 600px;
      margin: 0 auto;
      box-shadow: 0 6px 18px rgba(20,20,20,0.06);
    }

    .form-label-custom {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .form-input-custom {
      width: 100%;
      padding: 10px 12px;
      font-size: 16px;
      border: 1px solid #ddd;
      border-radius: 6px;
    }

    .result-box {
      margin-top: 16px;
      font-size: 20px;
      line-height: 1.4;
      background: #f7f7ff;
      padding: 12px;
      border-radius: 8px;
      border: 1px dashed #e0e0ff;
    }

    .latin-text-custom {
      font-weight: 600;
    }

    .marathi-text-custom {
      font-family: "Noto Sans Devanagari", "Lohit Devanagari", "Mangal", serif;
      font-weight: 700;
    }

    .hint-text-custom {
      margin-top: 8px;
      color: #666;
      font-size: 13px;
    }