/**
 * So-Hum Donation Form - Frontend Styles
 * High-end, modern design with smooth animations
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --sohum-primary: #103664;
    --sohum-accent: #99CA3C;
    --sohum-success: #10b981;
    --sohum-warning: #f59e0b;
    --sohum-danger: #ef4444;
    --sohum-gray-50: #f9fafb;
    --sohum-gray-100: #f3f4f6;
    --sohum-gray-200: #e5e7eb;
    --sohum-gray-300: #d1d5db;
    --sohum-gray-400: #9ca3af;
    --sohum-gray-500: #6b7280;
    --sohum-gray-600: #4b5563;
    --sohum-gray-700: #374151;
    --sohum-gray-800: #1f2937;
    --sohum-gray-900: #111827;
}

/* Main Wrapper */
.sohum-donation-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(16, 54, 100, 0.12);
    font-family: 'Inter', sans-serif;
}

/* Header Section */
.sohum-donation-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sohum-donation-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sohum-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.sohum-donation-description {
    font-size: 1.125rem;
    color: var(--sohum-gray-600);
    margin-bottom: 25px;
    line-height: 1.6;
}

.sohum-donation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--sohum-accent), #7db329);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(153, 202, 60, 0.3);
}

.sohum-donation-badge svg {
    width: 20px;
    height: 20px;
}

/* Amount Selection */
.sohum-donation-amounts {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sohum-amounts-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sohum-gray-800);
    margin-bottom: 20px;
}

.sohum-amounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.sohum-amount-button {
    position: relative;
    padding: 20px 15px;
    background: white;
    border: 2px solid var(--sohum-gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.sohum-amount-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sohum-primary), var(--sohum-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.sohum-amount-button .currency,
.sohum-amount-button .amount {
    position: relative;
    z-index: 1;
    display: block;
    transition: color 0.3s ease;
}

.sohum-amount-button .currency {
    font-size: 0.875rem;
    color: var(--sohum-gray-500);
    margin-bottom: 5px;
}

.sohum-amount-button .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sohum-gray-800);
}

.sohum-amount-button:hover {
    border-color: var(--sohum-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 54, 100, 0.15);
}

.sohum-amount-button.active {
    border-color: var(--sohum-accent);
    box-shadow: 0 0 0 3px rgba(153, 202, 60, 0.2);
}

.sohum-amount-button.active::before {
    opacity: 1;
}

.sohum-amount-button.active .currency,
.sohum-amount-button.active .amount {
    color: white;
}

.custom-amount-btn .amount {
    font-size: 1.125rem !important;
}

/* Custom Amount Input */
.sohum-custom-amount-wrapper {
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

.sohum-custom-amount-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid var(--sohum-gray-300);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.sohum-custom-amount-input:focus {
    border-color: var(--sohum-accent);
    box-shadow: 0 0 0 3px rgba(153, 202, 60, 0.1);
}

/* Donation Type */
.sohum-donation-type {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.sohum-type-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sohum-gray-800);
    margin-bottom: 20px;
}

.sohum-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.sohum-type-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.sohum-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid var(--sohum-gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.option-content svg {
    width: 32px;
    height: 32px;
    color: var(--sohum-gray-400);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.option-content strong {
    display: block;
    font-size: 1.125rem;
    color: var(--sohum-gray-800);
    margin-bottom: 3px;
}

.option-content span {
    display: block;
    font-size: 0.875rem;
    color: var(--sohum-gray-500);
}

.sohum-type-option:hover .option-content {
    border-color: var(--sohum-primary);
    box-shadow: 0 4px 12px rgba(16, 54, 100, 0.1);
}

.sohum-type-option.active .option-content {
    border-color: var(--sohum-accent);
    background: linear-gradient(135deg, rgba(153, 202, 60, 0.05), rgba(125, 179, 41, 0.05));
}

.sohum-type-option.active .option-content svg {
    color: var(--sohum-accent);
}

/* Impact Information */
.sohum-impact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.impact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--sohum-gray-50), white);
    border-radius: 12px;
    border: 1px solid var(--sohum-gray-200);
}

.impact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.impact-content strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sohum-accent);
    margin-bottom: 5px;
}

.impact-content p {
    font-size: 0.875rem;
    color: var(--sohum-gray-600);
    line-height: 1.4;
}

/* Payment QR Code Section */
.sohum-payment-qr {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(16, 54, 100, 0.03), rgba(153, 202, 60, 0.03));
    border-radius: 16px;
    border: 2px solid var(--sohum-gray-200);
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.qr-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sohum-primary);
    text-align: center;
    margin-bottom: 25px;
}

.qr-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.qr-image {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qr-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--sohum-gray-200);
}

.qr-instructions h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sohum-gray-800);
    margin-bottom: 15px;
}

.qr-instructions ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.qr-instructions li {
    font-size: 0.95rem;
    color: var(--sohum-gray-700);
    margin-bottom: 8px;
    line-height: 1.5;
}

.qr-note {
    padding: 15px;
    background: rgba(153, 202, 60, 0.1);
    border-left: 4px solid var(--sohum-accent);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--sohum-gray-700);
    margin-top: 15px;
}

.qr-note strong {
    color: var(--sohum-accent);
}

/* Form */
.sohum-donation-form {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.sohum-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.sohum-form-group {
    display: flex;
    flex-direction: column;
}

.sohum-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sohum-gray-700);
    margin-bottom: 10px;
}

.sohum-form-group label svg {
    width: 18px;
    height: 18px;
    color: var(--sohum-accent);
}

.required {
    color: var(--sohum-danger);
}

.sohum-form-group input[type="text"],
.sohum-form-group input[type="email"],
.sohum-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--sohum-gray-300);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.sohum-form-group input:focus {
    border-color: var(--sohum-accent);
    box-shadow: 0 0 0 3px rgba(153, 202, 60, 0.1);
}

.sohum-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--sohum-gray-500);
}

/* File Uploads */
.sohum-file-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sohum-upload-group {
    border: 2px dashed var(--sohum-gray-300);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--sohum-gray-50);
}

.sohum-upload-group:hover {
    border-color: var(--sohum-accent);
    background: rgba(153, 202, 60, 0.05);
}

.sohum-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sohum-file-label svg {
    width: 36px;
    height: 36px;
    color: var(--sohum-accent);
}

.sohum-file-label span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sohum-gray-700);
}

.sohum-file-label input[type="file"] {
    display: none;
}

.file-preview {
    margin-top: 15px;
    font-size: 0.875rem;
    color: var(--sohum-success);
}

.file-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Certificate Info */
.sohum-certificate-info {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 54, 100, 0.05), rgba(153, 202, 60, 0.05));
    border-radius: 12px;
    border: 1px solid var(--sohum-gray-200);
    margin-bottom: 30px;
}

.info-icon {
    flex-shrink: 0;
}

.info-icon svg {
    width: 32px;
    height: 32px;
    color: var(--sohum-accent);
}

.info-content strong {
    display: block;
    font-size: 1rem;
    color: var(--sohum-gray-800);
    margin-bottom: 5px;
}

.info-content p {
    font-size: 0.875rem;
    color: var(--sohum-gray-600);
    line-height: 1.5;
}

/* Submit Button */
.sohum-submit-button {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--sohum-primary), #1a5a9e);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.sohum-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 54, 100, 0.3);
    opacity: 0.9;
}

.sohum-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text,
.button-loader {
    position: relative;
    z-index: 1;
}

.spinner {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

/* Success Message */
.sohum-success-message {
    text-align: center;
    padding: 60px 40px;
    animation: fadeInUp 0.6s ease-out;
}

.success-icon {
    display: inline-block;
    margin-bottom: 25px;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    color: var(--sohum-success);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.sohum-success-message h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--sohum-gray-800);
    margin-bottom: 15px;
}

.sohum-success-message p {
    font-size: 1rem;
    color: var(--sohum-gray-600);
    margin-bottom: 10px;
}

.certificate-number {
    font-weight: 600;
    color: var(--sohum-accent);
}

.sohum-reset-button {
    margin-top: 25px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sohum-primary);
    background: white;
    border: 2px solid var(--sohum-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.sohum-reset-button:hover {
    background: var(--sohum-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sohum-donation-wrapper {
        padding: 40px 25px;
        margin: 30px 15px;
    }
    
    .sohum-donation-title {
        font-size: 2rem;
    }
    
    .sohum-amounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sohum-type-options {
        grid-template-columns: 1fr;
    }
    
    .sohum-impact-info {
        grid-template-columns: 1fr;
    }
    
    .qr-container {
        grid-template-columns: 1fr;
    }
    
    .qr-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .sohum-form-grid {
        grid-template-columns: 1fr;
    }
    
    .sohum-file-uploads {
        grid-template-columns: 1fr;
    }
}
