/* ========================================
   PARTNER FORM - COMPLETE STYLES
   ======================================== */

/* General container + Custom Background */
.pfg-client-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    background-color: #fffaf0 !important;
}

/* === Partner Form Logo === */
.pfg-logo {
    text-align: center;
    margin-bottom: 15px;
}

.pfg-logo img {
    width: 320px;
    height: auto;
    display: inline-block;
    border-radius: 8px;
    margin-top: 10px;
}

/* Main title */
.pfg-main-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #006B3C;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

/* Partner form title */
.pfg-client-form h2.pfg-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Open Sans', sans-serif;
}

/* Form groups */
.pfg-form .form-group {
    margin-bottom: 35px;
}

/* Labels */
.pfg-form label,
.pfg-client-form .checkbox-group label {
    font-weight: 700 !important;
    margin-bottom: 5px;
    color: #333;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    display: block;
}

/* Inputs and textarea */
/* Inputs and textarea - MORE CURVED */
.pfg-form input[type="text"],
.pfg-form input[type="email"],
.pfg-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 9px !important;  /* 👈 Zyada curved */
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    box-sizing: border-box;
    transition: all 0.3s;
}

.pfg-form input[type="text"]:focus,
.pfg-form input[type="email"]:focus,
.pfg-form textarea:focus {
    border-color: #f29726;
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 151, 38, 0.15);
}


/* Textarea specific spacing */
.pfg-client-form .form-group textarea {
    margin-top: 10px;
    resize: vertical;
}

/* ========================================
   INPUT BUTTON GROUP (Email + OTP)
   ======================================== */
.pfg-input-btn-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.pfg-input-btn-group input {
    flex: 1;
    min-width: 0;
}

.pfg-input-btn-group button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ========================================
   OTP BUTTONS
   ======================================== */
.pfg-otp-btn {
    background-color: #f29726 !important;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700 !important;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    min-width: 120px;
}

.pfg-otp-btn:hover:not(:disabled) {
    background-color: #d97d0e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 151, 38, 0.4);
}

.pfg-otp-btn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* OTP Input Field */
#pfg-otp-input {
    font-size: 16px;
    letter-spacing: 3px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* OTP Field Animation */
#pfg-otp-field {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Messages */
.pfg-status-msg {
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
}

/* ========================================
   CHECKBOX
   ======================================== */
.pfg-form input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pfg-client-form .form-group.checkbox-group {
    margin-bottom: 0px !important;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 700 !important;
}

/* ========================================
   ATTACHMENT LINK
   ======================================== */
.pfg-form .form-group a,
.pfg-client-form .attachment-link {
    color: #006B3C;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    display: inline-block;
    background: #f29726;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.pfg-form .form-group a:hover,
.pfg-client-form .attachment-link:hover {
    background-color: #d97d0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 151, 38, 0.3);
    text-decoration: none;
}

/* Flex layout for label + input/link */
.pfg-client-form .form-group.form-flex {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pfg-client-form .form-group.form-flex label {
    margin: 0;
    white-space: nowrap;
}

.pfg-client-form .form-group.form-flex input,
.pfg-client-form .form-group.form-flex a {
    margin: 0;
    flex: 1;
}

/* ========================================
   SIGNATURE PAD
   ======================================== */
.pfg-signature-pad {
    width: 100%;
    height: 180px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #ffd9a9;
    touch-action: none;
    display: block;
    margin-top: 6px;
    cursor: crosshair;
}

#clear-signature,
.pfg-clear-btn {
    margin-top: 8px;
    background: #f29726;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
}

#clear-signature:hover,
.pfg-clear-btn:hover {
    background: #d97d0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(242, 151, 38, 0.3);
}

/* ========================================
   SERVICES DESCRIPTION (MESSAGE BOX)
   ======================================== */
.pfg-message-box {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 12px;
    border-radius: 8px;
    min-height: 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.5;
    box-sizing: border-box;
}

.pfg-message-box br {
    display: block;
    margin: 0;
    content: "";
}

/* ========================================
   TERMS & CONDITIONS BOX
   ======================================== */
.pfg-terms-box {
    background: #fffbe6;
    border: 1px solid #e5d17c;
    border-radius: 8px;
    margin-top: 4px !important;
    padding: 10px 12px !important;
    font-size: 14px;
    color: #333;
    line-height: 1.6 !important;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Open Sans', sans-serif;
}

.pfg-terms-box p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    white-space: pre-wrap;
}

/* ========================================
   REQUIRED ASTERISK
   ======================================== */
.required {
    color: #f44336;
    font-size: 16px;
}

/* ========================================
   NOTE TEXT
   ======================================== */
.pfg-note {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 400 !important;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */
.pfg-submit {
    width: 100%;
    background-color: #f29726 !important;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700 !important;
    margin-top: 40px !important;
}

.pfg-submit:hover:not(:disabled) {
    background-color: #d97d0e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 151, 38, 0.4);
}

.pfg-submit:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .pfg-client-form {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .pfg-input-btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .pfg-otp-btn {
        width: 100%;
        min-width: auto;
    }
    
    .pfg-logo img {
        width: 280px;
    }
}

@media (max-width: 600px) {
    .pfg-signature-pad {
        width: 100% !important;
        height: 220px !important;
        display: block !important;
        background: #ffd8a8 !important;
        border: 2px solid #ccc !important;
        border-radius: 8px !important;
        touch-action: none !important;
    }
    
    .pfg-main-title {
        font-size: 26px;
    }
    
    .pfg-client-form h2.pfg-title {
        font-size: 18px;
    }
    
    .pfg-form label,
    .pfg-client-form .checkbox-group label {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pfg-client-form {
        padding: 15px;
        margin: 15px 10px;
    }
    
    .pfg-logo img {
        width: 240px;
    }
    
    .pfg-otp-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .pfg-submit {
        font-size: 15px;
        padding: 12px 20px;
    }
}
