/**
 * NestPay Payment Form Styles - UPDATED
 * Background: Linear gradient black → red
 * Inputs: White with black text
 * Font: Days One
 * No border-radius
 * All borders 1px
 */

@import url('https://fonts.googleapis.com/css2?family=Days+One&display=swap');

/* -------------------------------
   CONTAINER
-------------------------------- */
.nestpay-payment-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #000000 0%, #00e1f0 100%);
    font-family: 'Days One', sans-serif;
    color: #ffffff;
}

/* -------------------------------
   TITLE
-------------------------------- */
.nestpay-payment-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
}

/* -------------------------------
   FORM GROUPS
-------------------------------- */
.nestpay-form-group {
    margin-bottom: 24px;
}

/* -------------------------------
   LABELS
-------------------------------- */
.nestpay-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 100;
    letter-spacing: 0.8px;
    color: #ffffff;
}

/* -------------------------------
   FORM HINTS
-------------------------------- */
.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 100;
    font-style: italic;
}

/* -------------------------------
   FORM ERROR MESSAGES
-------------------------------- */
.form-error {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #00e1f0;
    font-weight: 500;
    background-color: rgba(255, 0, 0, 0.1);
    padding: 5px 8px;
    border-left: 2px solid #00e1f0;
}

/* -------------------------------
   INPUTS, SELECTS, TEXTAREAS
-------------------------------- */
.nestpay-form-group input,
.nestpay-form-group select,
.nestpay-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ffffff;
    font-size: 15px;
    font-weight: 100;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Days One', sans-serif;
    box-sizing: border-box;
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select#card_type {
    padding-top: 0;
    padding-bottom: 0;
}

/* Placeholder text */
.nestpay-form-group input::placeholder,
.nestpay-form-group textarea::placeholder {
    font-weight: 100;
    color: rgba(0,0,0,0.5);
}

/* -------------------------------
   VALIDATION STATES
-------------------------------- */

/* Valid input */
.nestpay-form-group input:valid:not(:placeholder-shown),
.nestpay-form-group select:valid,
.nestpay-form-group textarea:valid:not(:placeholder-shown) {
    border-color: #4CAF50;
}

/* Invalid input */
.nestpay-form-group input:invalid:not(:placeholder-shown):not(:focus),
.nestpay-form-group select:invalid:not(:focus),
.nestpay-form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #00e1f0;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

/* -------------------------------
   CUSTOM SELECT DROPDOWN ICON
-------------------------------- */
.nestpay-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

/* Dropdown arrow red on focus */
.nestpay-form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff0000' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

/* -------------------------------
   INPUT STATES (all inputs)
-------------------------------- */
.nestpay-form-group input,
.nestpay-form-group textarea,
.nestpay-form-group select,
.nestpay-form-group input[type="text"],
.nestpay-form-group input[type="email"],
.nestpay-form-group input[type="number"],
.nestpay-form-group input[type="tel"],
.nestpay-form-group input[type="password"],
.nestpay-form-group input[type="url"],
.nestpay-form-group input[type="date"],
.nestpay-form-group input[type="datetime-local"],
.nestpay-form-group input[type="time"],
.nestpay-form-group input[type="month"],
.nestpay-form-group input[type="week"],
.nestpay-form-group input[type="color"],
.nestpay-form-group input:focus,
.nestpay-form-group textarea:focus,
.nestpay-form-group select:focus,
.nestpay-form-group input:hover,
.nestpay-form-group textarea:hover,
.nestpay-form-group select:hover,
.nestpay-form-group input:active,
.nestpay-form-group textarea:active,
.nestpay-form-group select:active {
    outline: none;
    border-color: #00e1f0;
}

/* Autofill fix */
.nestpay-form-group input:-webkit-autofill,
.nestpay-form-group textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: #000000;
    border: 1px solid #00e1f0;
}

/* -------------------------------
   TOTAL AMOUNT
-------------------------------- */
.nestpay-total-amount {
    margin-top: 30px;
    padding: 18px;
    border: 1px solid #ffffff;
    text-align: center;
    font-size: 18px;
    font-weight: 100;
    letter-spacing: 1px;
}

/* -------------------------------
   SUBMIT BUTTON
-------------------------------- */
.nestpay-submit-btn {
    margin-top: 10px;
    width: 100%;
    padding: 16px;
    background: #00e1f0;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Days One', sans-serif;
    border-radius: 0;
    transition: all 500ms;
}

.nestpay-submit-btn:hover {
    background: #fff;
    color: #00e1f0;
    border-color: #fff;
}

.nestpay-submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* -------------------------------
   RESPONSIVE
-------------------------------- */
@media (max-width: 768px) {
    .nestpay-payment-container {
        padding: 24px;
        margin: 20px;
    }

    .nestpay-payment-container h2 {
        font-size: 22px;
    }

    .nestpay-form-group input,
    .nestpay-form-group select,
    .nestpay-form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .nestpay-total-amount {
        font-size: 16px;
    }

    .nestpay-submit-btn {
        font-size: 14px;
        padding: 14px;
    }
    
    .form-hint {
        font-size: 10px;
    }
}