/* Zolid Certificate Generator - Amann Girrbach Styled Form */

/* Import Noto Sans font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100;200;300;400;500;600;700&display=swap');

/* Reset box-sizing for all elements */
.zcg-hero-container,
.zcg-hero-container *,
.zcg-form-container,
.zcg-form-container * {
    box-sizing: border-box;
    max-width: 100%;
}

/* Hero Container Styles */
.zcg-hero-container {
    background: linear-gradient(135deg, #005ba0 0%, #002d5f 100%); /* smartblue to intenseblue */
    border-radius: 0; /* full width */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #fff;
    padding: 3rem 1rem; /* Added horizontal padding */
    margin: 0; /* full width */
    width: 100%; /* full width */
    max-width: none; /* full width */
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.zcg-hero-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 220, 255, 0.2) 0%, rgba(120, 220, 255, 0) 70%); /* brilliantblue */
    z-index: 1;
    pointer-events: none;
}

.zcg-hero-container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 225, 180, 0.15) 0%, rgba(155, 225, 180, 0) 70%); /* feelgoodmint */
    z-index: 1;
    pointer-events: none;
}

/* Logo Container */
.zcg-logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.zcg-hero-logo {
    max-width: 200px;
    height: auto;
}

@media (min-width: 768px) {
    .zcg-hero-logo {
        max-width: 250px;
    }
}

/* Hero Title */
.zcg-hero-title {
    font-size: 2.2rem;
    font-weight: 500; /* medium weight per brand */
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.zcg-hero-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 300; /* light weight per brand */
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Form Container */
.zcg-form-container {
    background: rgba(242, 233, 221, 0.1); /* cosycashmere with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: calc(100% - 2rem);
    margin: 0 1rem;
    box-sizing: border-box;
    width: auto;
}

/* Form Elements */
#zcg-certificate-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    #zcg-certificate-form {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .zcg-form-row {
        flex: 1;
        min-width: 200px;
    }
    
    .zcg-form-row:last-child {
        flex: 0 0 auto;
        align-self: flex-end;
        margin-top: 0;
    }
    
    .zcg-hero-logo {
        max-width: 250px;
    }
    
    .zcg-form-container {
        max-width: 900px;
        margin: 0 auto;
        width: calc(100% - 2rem);
    }
}

.zcg-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.zcg-form-row label {
    font-weight: 500; /* medium weight per brand */
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.zcg-form-row input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.5rem;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 400; /* normal weight per brand */
    transition: all 0.3s ease;
    color: #002d5f; /* intenseblue */
    font-family: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.zcg-form-row input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(155, 225, 180, 0.3); /* feelgoodmint with transparency */
    outline: none;
}

.zcg-form-row input::placeholder {
    color: #718096;
    opacity: 0.7;
}

/* Submit Button */
.zcg-submit-button {
    background: #78dcff; /* brilliantblue */
    color: #002d5f; /* intenseblue - for contrast */
    border: none;
    border-radius: 0.5rem;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500; /* medium weight per brand */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(120, 220, 255, 0.3); /* brilliantblue shadow */
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 48px; /* match input height */
    white-space: nowrap;
}

.zcg-submit-button:hover {
    background: #9be1b4; /* feelgoodmint on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(155, 225, 180, 0.4); /* feelgoodmint shadow */
}

.zcg-submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(155, 225, 180, 0.4); /* feelgoodmint shadow */
}

/* Spinner Animation */
.zcg-spinner {
    display: inline-block;
    margin-left: 10px;
    font-size: 1rem;
    font-weight: 400; /* normal weight per brand */
    color: rgba(255, 255, 255, 0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Message Styles */
.zcg-message {
    padding: 12px;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500; /* medium weight per brand */
    display: none;
    font-family: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.zcg-message.success {
    background: rgba(155, 225, 180, 0.2); /* feelgoodmint with transparency */
    color: #ffffff;
    border-left: 4px solid #9be1b4; /* feelgoodmint */
    display: block;
}

.zcg-message.error {
    background: rgba(255, 240, 85, 0.2); /* shinyyellow with transparency */
    color: #ffffff;
    border-left: 4px solid #fff055; /* shinyyellow */
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .zcg-hero-container {
        padding: 2rem 1rem;
        width: 100vw;
        overflow-x: hidden;
    }
    
    .zcg-hero-title {
        font-size: 1.8rem;
        padding: 0 10px;
        word-break: break-word;
        width: 100%;
    }
    
    .zcg-hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        width: 100%;
    }
    
    .zcg-form-container {
        padding: 1.25rem;
        margin: 0 auto;
        width: calc(100% - 30px);
        max-width: 100%;
    }
    
    .zcg-submit-button {
        margin-top: 1rem;
        width: 100%;
        height: auto;
        padding: 14px 20px;
    }
    
    #zcg-certificate-form {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0;
    }
    
    .zcg-form-row {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .zcg-form-row input {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .zcg-hero-container {
        padding: 1.5rem 1rem;
    }
    
    .zcg-hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .zcg-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .zcg-hero-logo {
        max-width: 180px;
    }
    
    .zcg-form-container {
        padding: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .zcg-hero-container {
        padding: 4rem 0rem;
    }
    
    .zcg-hero-title {
        font-size: 2.5rem;
    }
    
    .zcg-form-container {
        padding: 2.5rem;
    }
}
