/**
 * NCCC Quick Pay Styles
 * Version 2.0.0
 */

.nccc-quick-pay-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 500px;
    margin: 20px auto;
}

.nccc-quick-pay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.nccc-quick-pay-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.nccc-testmode-badge {
    background: #ff9800;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.nccc-form-group {
    margin-bottom: 18px;
}

.nccc-form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.nccc-form-group label .required {
    color: #e53935;
}

.nccc-form-group input,
.nccc-form-group select,
.nccc-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.nccc-form-group input:focus,
.nccc-form-group select:focus,
.nccc-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.nccc-form-group input::placeholder {
    color: #aaa;
}

.nccc-amount-input {
    font-size: 24px !important;
    font-weight: bold;
    text-align: center;
}

.nccc-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.nccc-quick-amount {
    padding: 10px 5px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    color: #333;
}

.nccc-quick-amount:hover {
    border-color: #667eea;
    background: #f0f0ff;
    color: #667eea;
}

/* Divider */
.nccc-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 25px 0;
}

/* Section Title */
.nccc-section-title {
    color: #333;
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

/* Hint Text */
.nccc-hint {
    color: #888;
    font-size: 13px;
    margin: -10px 0 15px 0;
}

/* Submit Button */
.nccc-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.nccc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.nccc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secure Badge */
.nccc-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #888;
    font-size: 12px;
}

.nccc-secure-badge svg {
    flex-shrink: 0;
}

/* Two Column Layout for small fields */
.nccc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ========== 簡易模式（打賞）========== */
.nccc-simple-mode {
    max-width: 320px;
    background: linear-gradient(145deg, #fff9f0 0%, #fff 50%, #f0f4ff 100%);
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.nccc-simple-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
}

.nccc-simple-mode .nccc-quick-pay-header {
    text-align: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 16px;
}

.nccc-simple-mode .nccc-quick-pay-header h3 {
    font-size: 20px;
    color: #2d3436;
    margin-bottom: 0;
    font-weight: 600;
}

.nccc-simple-mode .nccc-quick-pay-header h3::before {
    content: '☕ ';
}

.nccc-tip-amounts {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 0;
}

.nccc-tip-amount {
    flex: 1;
    padding: 16px 8px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    transition: all 0.25s ease;
    position: relative;
}

.nccc-tip-amount::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nccc-tip-amount:hover {
    border-color: #c5cae9;
    background: #fafbff;
    color: #667eea;
    transform: translateY(-2px);
}

.nccc-tip-amount:hover::after {
    width: 60%;
}

.nccc-tip-amount.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.nccc-tip-amount.selected::after {
    display: none;
}

.nccc-simple-mode .nccc-form-group {
    margin-bottom: 12px;
}

.nccc-simple-mode .nccc-form-group label {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
}

.nccc-simple-mode .nccc-form-group input {
    text-align: center;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.2s;
}

.nccc-simple-mode .nccc-form-group input:focus {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.nccc-simple-mode .nccc-form-group input::placeholder {
    color: #aaa;
    font-size: 13px;
}

.nccc-simple-mode .nccc-submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 6px;
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.3);
}

.nccc-simple-mode .nccc-submit-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    box-shadow: 0 6px 20px rgba(238, 90, 90, 0.4);
    transform: translateY(-2px);
}

.nccc-simple-mode .nccc-secure-badge {
    font-size: 11px;
    color: #999;
    margin-top: 12px;
}

.nccc-simple-mode .nccc-secure-badge svg {
    opacity: 0.6;
}

/* ========== Responsive ========== */
@media (max-width: 540px) {
    .nccc-quick-pay-container {
        padding: 20px;
        margin: 10px;
        border-radius: 12px;
    }

    .nccc-quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .nccc-amount-input {
        font-size: 20px !important;
    }

    .nccc-form-row {
        grid-template-columns: 1fr;
    }

    .nccc-submit-btn {
        padding: 14px;
        font-size: 16px;
    }

    .nccc-simple-mode {
        margin: 15px 10px;
        padding: 25px 20px;
    }

    .nccc-tip-amounts {
        gap: 8px;
    }

    .nccc-tip-amount {
        padding: 14px 6px;
        font-size: 14px;
        border-radius: 10px;
    }

    .nccc-simple-mode .nccc-form-group input {
        padding: 12px;
    }

    .nccc-simple-mode .nccc-submit-btn {
        padding: 14px;
        font-size: 16px;
    }
}
