/**
 * Honer Astrology Jewellery - Frontend Styles
 *
 * @package HonerJewellery
 */

/* ============================================================
   WIDGET CONTAINER
   ============================================================ */

.hjw-astrology-widget {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #EDECEC;
    font-family: inherit;
    color: #4A4A4A;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.astrology-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 0 60px;
    margin-bottom: 40px;
}

.astrology-hero-content {
    flex: 1;
    max-width: 55%;
}

.astrology-eyebrow {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 400;
    color: #C9A96E;
}

.astrology-title {
    font-size: 52px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.astrology-description {
    font-size: 17px;
    line-height: 1.8;
    color: #4A4A4A;
    max-width: 520px;
    margin: 0 0 30px 0;
    font-weight: 300;
}

.astrology-cta {
    display: inline-block;
    padding: 14px 40px;
    background-color: #C9A96E;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #C9A96E;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.astrology-cta:hover {
    background-color: transparent;
    color: #C9A96E;
}

.astrology-hero-image {
    flex: 1;
    max-width: 45%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.astrology-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.astrology-hero-image img:hover {
    transform: scale(1.02);
}

/* ============================================================
   HERITAGE SECTION
   ============================================================ */

.astrology-heritage {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px 0;
    margin-bottom: 40px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.heritage-content {
    flex: 1;
}

.heritage-content h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.heritage-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 16px;
    font-weight: 300;
}

.heritage-closing {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #C9A96E;
    margin-top: 20px;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.heritage-image {
    flex: 1;
    max-width: 45%;
    border-radius: 12px;
    overflow: hidden;
}

.heritage-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */

.astrology-process {
    padding: 60px 0;
    text-align: center;
}

.astrology-process h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #1A1A1A;
    margin: 0 0 40px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    background: #FFFFFF;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #EAEAEA;
    text-align: center;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: #C9A96E;
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #C9A96E;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.process-step p {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

/* ============================================================
   NAVARATNA SECTION
   ============================================================ */

.astrology-navaratna {
    padding: 60px 0;
    text-align: center;
}

.astrology-navaratna h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #1A1A1A;
    margin: 0 0 16px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.astrology-navaratna > p {
    font-size: 16px;
    color: #4A4A4A;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.7;
}

.navaratna-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.navaratna-item {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.navaratna-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: #C9A96E;
}

.navaratna-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.navaratna-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 6px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.navaratna-item p {
    font-size: 14px;
    color: #777;
    margin: 0 0 16px 0;
    font-weight: 300;
}

.navaratna-item .navaratna-select {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #C9A96E;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #C9A96E;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.navaratna-item .navaratna-select:hover {
    background: #C9A96E;
    color: #FFFFFF;
}

/* ============================================================
   CONSULTATION FORM
   ============================================================ */

.astrology-form {
    padding: 60px 0 40px;
    max-width: 800px;
    margin: 0 auto;
}

.astrology-form h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #1A1A1A;
    text-align: center;
    margin: 0 0 30px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.astrology-form form {
    background: #FFFFFF;
    padding: 40px 50px;
    border-radius: 16px;
    border: 1px solid #EAEAEA;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.03);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #F0F0F0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C9A96E;
    margin: 0 0 16px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4A4A4A;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    font-size: 15px;
    color: #1A1A1A;
    background: #FFFFFF;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.size-input-group {
    display: flex;
    gap: 10px;
}

.size-input-group input {
    flex: 1;
}

.size-input-group select {
    width: auto;
    min-width: 80px;
}

/* Service Options */
.service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #EAEAEA;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover {
    border-color: #C9A96E;
    background: rgba(201, 169, 110, 0.04);
}

.service-option input[type="radio"] {
    width: auto;
    flex-shrink: 0;
}

.service-option span {
    font-size: 14px;
    color: #4A4A4A;
}

.service-option input[type="radio"]:checked + span {
    color: #C9A96E;
    font-weight: 600;
}

/* Measurement Groups */
.measurement-group {
    display: none;
}

.measurement-group.active {
    display: block;
}

.size-help-btn {
    background: transparent;
    border: none;
    color: #C9A96E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: underline;
    font-family: inherit;
}

.size-help-btn:hover {
    color: #b8965a;
}

.custom-finger-fields {
    margin-top: 12px;
    padding: 16px;
    background: #F8F8F8;
    border-radius: 8px;
}

/* Form Submit */
.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit .astrology-cta {
    padding: 16px 50px;
    font-size: 14px;
}

/* Form Success */
#astrologySuccess {
    text-align: center;
    padding: 40px;
    background: #F8F8F8;
    border-radius: 12px;
}

#astrologySuccess h3 {
    font-size: 24px;
    color: #1A1A1A;
    margin: 0 0 12px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

#astrologySuccess p {
    font-size: 16px;
    color: #4A4A4A;
    line-height: 1.7;
    margin: 0 0 8px 0;
}

#astrologySuccess #consultationId {
    color: #C9A96E;
    font-weight: 600;
}

/* Form Error */
.astrology-form-error {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    margin-bottom: 16px;
    background: #f8d7da;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    display: none;
}

/* Form Loading */
.astrology-form-loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.astrology-form-loading .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #EAEAEA;
    border-top-color: #C9A96E;
    border-radius: 50%;
    animation: astrologySpinner 0.8s linear infinite;
}

@keyframes astrologySpinner {
    to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .hjw-astrology-widget {
        padding: 40px 24px;
    }

    .astrology-hero {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0 40px;
    }

    .astrology-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .astrology-description {
        max-width: 100%;
        margin: 0 auto 24px;
    }

    .astrology-hero-image {
        max-width: 100%;
        max-height: 400px;
    }

    .astrology-title {
        font-size: 38px;
    }

    .astrology-heritage {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .heritage-content {
        flex: none;
    }

    .heritage-image {
        max-width: 100%;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .navaratna-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .astrology-form form {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .service-options {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hjw-astrology-widget {
        padding: 30px 16px;
    }

    .astrology-title {
        font-size: 30px;
    }

    .astrology-description {
        font-size: 15px;
    }

    .astrology-cta {
        padding: 12px 28px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    .heritage-content h2 {
        font-size: 24px;
    }

    .heritage-closing {
        font-size: 18px;
    }

    .astrology-process h2 {
        font-size: 24px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .astrology-navaratna h2 {
        font-size: 24px;
    }

    .navaratna-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .astrology-form h2 {
        font-size: 24px;
    }

    .astrology-form form {
        padding: 20px 16px;
    }

    .form-section h4 {
        font-size: 12px;
    }

    .size-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .size-input-group select {
        width: 100%;
    }

    .navaratna-item img {
        height: 160px;
    }

    .astrology-hero-image {
        max-height: 260px;
    }

    #astrologySuccess h3 {
        font-size: 20px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .hjw-astrology-widget {
        padding: 20px 12px;
    }

    .astrology-title {
        font-size: 26px;
    }

    .astrology-form form {
        padding: 16px 12px;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.hjw-astrology-widget input:focus-visible,
.hjw-astrology-widget select:focus-visible,
.hjw-astrology-widget textarea:focus-visible,
.hjw-astrology-widget button:focus-visible,
.hjw-astrology-widget a:focus-visible {
    outline: 3px solid #C9A96E;
    outline-offset: 2px;
}

/* ============================================================
   EDITOR PREVIEW
   ============================================================ */

.elementor-editor-active .astrology-hero-image {
    min-height: 200px;
    background: #f0f0f0;
}

.elementor-editor-active .astrology-hero-image img {
    min-height: 200px;
    object-fit: cover;
}