/**
 * GMoney Contacto - CSS Styling System
 * Exact visual match with CONTACTO.jpg reference image
 * Author: Valsan Fox
 * Text Domain: gmoney-contacto-form
 */

/* ====================================================
   1. CONTAINER CARD (#ffffff WHITE BG WITH ROUNDED CORNERS)
   ==================================================== */
.gmoney-contacto-card {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 44px 44px;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 767px) {
    .gmoney-contacto-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

/* Main Title "Ayúdanos a contactarte" */
.gmoney-contacto-title {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #182b39;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

/* ====================================================
   2. VERTICAL STACK LAYOUT
   ==================================================== */
.gmoney-contacto-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.gmoney-contacto-field-group {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ====================================================
   3. GREYISH PILL INPUTS (#e7eff2 BG)
   ==================================================== */
.gmoney-contacto-input {
    width: 100%;
    height: 54px;
    background-color: #e7eff2;
    border: 1.5px solid transparent;
    border-radius: 50px;
    padding: 16px 28px;
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #182b39;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.gmoney-contacto-input::placeholder {
    color: #7f92a0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.gmoney-contacto-input:focus::placeholder {
    opacity: 0.6;
}

.gmoney-contacto-input:focus {
    border-color: #0075f4 !important;
    box-shadow: 0 0 0 3px rgba(0, 117, 244, 0.18);
    background-color: #e7eff2;
}

/* ====================================================
   4. INTL-TEL-INPUT CUSTOMIZATION
   ==================================================== */
.gmoney-contacto-phone-group .iti {
    width: 100%;
    display: block;
}

.gmoney-contacto-phone-group .iti__selected-flag {
    background-color: transparent;
    border-radius: 50px 0 0 50px;
    padding: 0 12px 0 20px;
}

.gmoney-contacto-phone-group .iti__selected-flag:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.gmoney-contacto-phone-group .gmoney-contacto-phone-input {
    padding-left: 92px !important;
}

.gmoney-contacto-phone-group .iti__country-list {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e7eff2;
    z-index: 100;
}

/* ====================================================
   5. CUSTOM RADIO BUTTONS SECTION
   ==================================================== */
.gmoney-contacto-radio-section {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gmoney-contacto-radio-section-label {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #182b39;
    margin-bottom: 4px;
    display: block;
}

.gmoney-contacto-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gmoney-contacto-radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.gmoney-contacto-radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.gmoney-custom-radio-dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-color: #e7eff2;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gmoney-custom-radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
    transform: scale(0);
}

.gmoney-contacto-radio-item:hover .gmoney-custom-radio-dot {
    background-color: #dbe6eb;
}

.gmoney-contacto-radio-input:checked + .gmoney-custom-radio-dot {
    background-color: #ffffff;
    border-color: #0075f4;
}

.gmoney-contacto-radio-input:checked + .gmoney-custom-radio-dot::after {
    background-color: #0075f4;
    transform: scale(1);
}

.gmoney-contacto-radio-label {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #182b39;
    line-height: 1.4;
}

/* ====================================================
   6. CUSTOM CONSENT CHECKBOX
   ==================================================== */
.gmoney-contacto-consent-group {
    margin-top: 8px;
    margin-bottom: 4px;
}

.gmoney-contacto-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.gmoney-contacto-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.gmoney-custom-check-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-color: #e7eff2;
    border: 2px solid transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
    box-sizing: border-box;
}

.gmoney-custom-check-box svg {
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

.gmoney-contacto-consent-item:hover .gmoney-custom-check-box {
    background-color: #dbe6eb;
}

.gmoney-contacto-checkbox-input:checked + .gmoney-custom-check-box {
    background-color: #0075f4;
    border-color: #0075f4;
}

.gmoney-contacto-checkbox-input:checked + .gmoney-custom-check-box svg {
    opacity: 1;
    transform: scale(1);
}

.gmoney-contacto-consent-label {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: #182b39;
}

/* ====================================================
   7. BLUE SUBMIT BUTTON (#0075f4 PILL)
   ==================================================== */
.gmoney-contacto-action-group {
    display: flex;
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
}

.gmoney-contacto-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    flex: 1 1 100%;
    box-sizing: border-box;
    height: 54px;
    background-color: #0075f4;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    box-shadow: none;
}

.gmoney-contacto-btn-text {
    font-weight: 700;
}

.gmoney-contacto-submit-btn:hover {
    background-color: #fec202;
    color: #182b39;
    transform: translateY(-1px);
    box-shadow: none;
}

.gmoney-contacto-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.gmoney-contacto-submit-btn:disabled,
.gmoney-contacto-submit-btn.is-loading {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner Animation */
.gmoney-contacto-spinner {
    width: 20px;
    height: 20px;
    animation: gmoney-rotate 1.4s linear infinite;
}

.gmoney-contacto-spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: gmoney-dash 1.4s ease-in-out infinite;
}

@keyframes gmoney-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes gmoney-dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* ====================================================
   8. ALERT FEEDBACK & INVALID STATES
   ==================================================== */
.gmoney-contacto-input.is-invalid,
.gmoney-contacto-radio-section.is-invalid .gmoney-custom-radio-dot,
.gmoney-contacto-consent-group.is-invalid .gmoney-custom-check-box {
    border-color: #ff3b30 !important;
    animation: gmoney-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes gmoney-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.gmoney-contacto-alert-box {
    margin-bottom: 16px;
    padding: 12px 20px;
    border-radius: 40px;
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

.gmoney-contacto-alert-box.alert-error {
    background-color: #ffebe9;
    color: #d70015;
    border: 1px solid #ffc3c0;
}

.gmoney-contacto-alert-box.alert-success {
    background-color: #eafbf0;
    color: #1b7a36;
    border: 1px solid #b7f0c8;
}

/* ====================================================
   9. STATE 2: SUCCESS CONFIRMATION (CONTACTO.jpg)
   ==================================================== */
.gmoney-contacto-form-element {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gmoney-contacto-container.is-submitting-success .gmoney-contacto-form-element {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
}

.gmoney-contacto-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmoney-contacto-container.gmoney-contacto-state-success .gmoney-contacto-success-box,
.gmoney-contacto-container.is-success .gmoney-contacto-success-box {
    opacity: 1;
    transform: translateY(0);
}

/* Blue Solid Badge with Checkmark */
.gmoney-contacto-success-badge {
    width: 48px;
    height: 48px;
    background-color: #0075f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(0, 117, 244, 0.25);
    transform: scale(0.8);
    animation: gmoney-pop-check 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.15s;
}

@keyframes gmoney-pop-check {
    to { transform: scale(1); }
}

.gmoney-contacto-check-svg {
    width: 22px;
    height: 22px;
}

.gmoney-contacto-success-title {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.gmoney-contacto-success-subtitle {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: #182b39;
    max-width: 460px;
    margin: 0;
}
