/* Modern Event Form Styling */
.onos-event-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.onos-event-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.onos-form-group {
    margin-bottom: 1.5rem;
}

.onos-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a4a4a;
    font-size: 0.9rem;
}

.onos-form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.onos-form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #fff;
}

/* International Phone Input Styling */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-right: 1px solid #e1e1e1;
}

.iti__selected-flag {
    padding: 0 0 0 10px;
    background: #f9f9f9;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background: #fff;
}

.iti input[type="tel"] {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 60px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.iti input[type="tel"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #fff;
}

.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
}

.iti__country:hover {
    background-color: #f0f0f0;
}

.iti__country.iti__highlight {
    background-color: #6366f1;
    color: white;
}

.onos-registration-fee {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
}

.onos-registration-fee p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.onos-registration-fee h3 {
    margin: 5px 0 0 0;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 800;
}

.onos-form-submit {
    margin-top: 1rem;
}

.onos-submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: #0d4429;
    /* Dark Green from User Image */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.onos-submit-btn:hover {
    background: #08331e;
    box-shadow: 0 4px 15px rgba(13, 68, 41, 0.2);
}

.onos-form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.onos-form-message.success {
    color: #10b981;
    display: block;
    min-height: 100px;
    padding: 20px !important;
}

.onos-form-message.success h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.onos-form-message.success p {
    margin: 10px 0;
    line-height: 1.6;
    color: white;
}

.onos-form-message.success p:last-child {
    margin-bottom: 0;
}

.onos-form-message.success .onos-success-btn,
.onos-form-message.success a {
    display: inline-block;
    padding: 12px 24px;
    margin: 15px 5px;
    color: #10b981 !important;
    text-decoration: none !important;
    border: 2px solid white;
    border-radius: 10px;
    font-weight: 800;
    transition: all 0.3s ease;
    background: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.onos-form-message.success .onos-success-btn:hover,
.onos-form-message.success a:hover {
    background: #f0fdf4;
    color: #059669 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.onos-form-message.error {
    color: #ef4444;
    display: block;
}

/* Payment Method Selection */
.onos-payment-methods {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.onos-payment-methods label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.onos-method-choices {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.onos-method-choice {
    flex: 1;
    position: relative;
    background: #fdfdfd;
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid #edeff2;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.onos-method-choice:hover {
    border-color: #6366f1;
    background: #f8faff;
}

.onos-method-choice.active {
    border-color: #6366f1;
    background: #f0f3ff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.onos-method-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.onos-method-choice label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.onos-method-choice.active label {
    color: #4f46e5;
}

.onos-pin-group {
    background: #fff;
    border: 1px dashed #6366f1 !important;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.onos-pin-group label {
    color: #4f46e5;
    font-weight: 700;
}

.onos-pin-group input {
    font-family: monospace;
    letter-spacing: 2px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4f46e5;
    background: #f5f3ff;
    border: 1px solid #ddd;
}

.onos-pin-group .description {
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
    text-align: center;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .onos-form-message.success {
        font-size: 14px;
        padding: 25px 15px !important;
        min-height: 120px;
    }

    .onos-form-message.success h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .onos-form-message.success p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Certificate Search Styling */
.onos-cert-search-wrapper {
    margin: 2rem auto;
    padding: 1rem;
    max-width: 600px;
}

.onos-cert-search-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.onos-cert-search-box h3 {
    margin: 0 0 10px 0;
    color: #111827;
    font-size: 1.75rem;
    font-weight: 800;
}

.onos-cert-search-box p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.onos-cert-search-box .onos-form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 0px !important;
}

.onos-cert-search-box input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.onos-cert-search-box input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.onos-cert-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 0 28px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.onos-cert-btn:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.onos-cert-btn:active {
    transform: translateY(0);
}

/* Mobile Responsiveness for Certificate Search */
@media (max-width: 600px) {
    .onos-cert-search-box .onos-form-group {
        flex-direction: column;
        gap: 15px !important;
    }

    .onos-cert-search-box input,
    .onos-cert-btn {
        width: 100% !important;
        flex: none !important;
        min-height: 50px;
    }

    .onos-cert-search-box {
        padding: 1.5rem;
    }
}


.onos-cert-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eef0f2;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.onos-cert-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.onos-cert-info h4 {
    margin: 0 0 4px 0;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 700;
}

.onos-cert-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.onos-download-link {
    color: #1a73e8;
    text-decoration: none !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: #f0f7ff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.onos-download-link:hover {
    background: #1a73e8;
    color: #ffffff;
}

.onos-btn-loader i {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.onos-loader-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: onos-spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes onos-spin {
    to {
        transform: rotate(360deg);
    }
}