/* Modern CSS with Inter font and clean design */
* { 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    margin: 0; 
    color: #374151; 
    background: #f9fafb; 
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 16px; 
}

/* Header Styles */
header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Navigation */
nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Form Styles */
form { 
    background: #fff; 
    padding: 32px; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500;
    color: #374151;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"],
input[type="tel"],
textarea { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #e5e7eb; 
    border-radius: 12px; 
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea { 
    min-height: 120px; 
    resize: vertical;
}

button { 
    background: #2563eb; 
    color: #fff; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Alert Styles */
.errors { 
    background: #fef2f2; 
    padding: 16px; 
    border: 1px solid #fecaca; 
    border-radius: 8px; 
    margin-bottom: 20px;
    color: #dc2626;
}

.errors ul {
    margin: 0;
    padding-left: 20px;
}

.success { 
    background: #f0fdf4; 
    padding: 16px; 
    border: 1px solid #bbf7d0; 
    margin-bottom: 20px;
    color: #16a34a;
    border-radius: 8px;
}

/* UCMPMD Form Specific Styles */
.ucmpmd-form { 
    max-width: 1200px; 
    margin: 0 auto;
}

.required-note { 
    color: #dc2626; 
    font-weight: 600; 
    margin-bottom: 24px; 
    font-size: 18px;
}

.form-section { 
    margin-bottom: 48px; 
    padding: 32px; 
    border: 1px solid #e5e7eb; 
    border-radius: 16px; 
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-section h2 { 
    color: #2563eb; 
    margin-top: 0; 
    margin-bottom: 24px; 
    border-bottom: 2px solid #2563eb; 
    padding-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
}

.form-row { 
    margin-bottom: 24px; 
}

.form-group { 
    margin-bottom: 20px; 
}

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

.required { 
    color: #dc2626; 
}

.form-table { 
    margin: 24px 0; 
    overflow-x: auto; 
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-table table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    border: 1px solid #e5e7eb;
}

.form-table th, 
.form-table td { 
    border: 1px solid #e5e7eb; 
    padding: 16px; 
    text-align: left; 
}

.form-table th { 
    background: #2563eb; 
    color: #fff; 
    font-weight: 600; 
    font-size: 14px;
}

.form-table td input { 
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    font-size: 14px;
}

.form-table tr:nth-child(even) { 
    background: #f9fafb; 
}

.notes { 
    background: #eff6ff; 
    padding: 20px; 
    border-left: 4px solid #2563eb; 
    margin: 24px 0; 
    border-radius: 0 8px 8px 0;
}

.notes p { 
    margin: 8px 0; 
    font-size: 14px; 
    color: #4b5563; 
    line-height: 1.6;
}

.declaration-checkboxes { 
    margin: 24px 0; 
}

.checkbox-group { 
    margin: 16px 0; 
}

.checkbox-group label { 
    display: flex; 
    align-items: flex-start; 
    font-weight: 400; 
    line-height: 1.5;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
    background: #f3f4f6;
}

.checkbox-group input[type="checkbox"] { 
    margin-right: 12px; 
    margin-top: 4px; 
    flex-shrink: 0; 
    width: 16px;
    height: 16px;
}

.office-use { 
    background: #f3f4f6; 
    border: 2px dashed #9ca3af; 
}

.office-use h2 { 
    color: #6b7280; 
    border-bottom-color: #9ca3af; 
}

.office-use input[readonly] { 
    background: #e5e7eb; 
    cursor: not-allowed; 
    color: #6b7280;
}

.form-actions { 
    text-align: center; 
    margin-top: 40px; 
}

.form-actions button { 
    background: #2563eb; 
    color: #fff; 
    border: none; 
    padding: 16px 32px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 18px; 
    font-weight: 600; 
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-actions button:hover { 
    background: #1d4ed8; 
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ucmpmd-form { 
        max-width: 100%; 
        padding: 0 16px;
    }
    
    .form-section { 
        padding: 20px; 
    }
    
    .form-table { 
        font-size: 14px; 
    }
    
    .form-table th, 
    .form-table td { 
        padding: 12px 8px; 
    }
    
    .checkbox-group label { 
        font-size: 14px; 
    }
    
    .form-actions button { 
        width: 100%; 
        padding: 14px 24px; 
    }
    
    .container {
        padding: 0 12px;
    }
    
    form {
        padding: 20px;
    }
}

/* Number input styling */
input[type="number"] { 
    -moz-appearance: textfield; 
}

input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Headings */
h1 { 
    margin-top: 0; 
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

h2 {
    font-size: 24px;
    font-weight: 600;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 24px;
}

.mt-4 {
    margin-top: 24px;
}

/* Footer Styles */
.footer {
    background-image: url(../img/bg_worldmap_d.jpg);
    padding: 90px 0 122px;
}

.footer.style2 {
    background: url(../img/bg-footer.jpg) center center;
    padding: 94px 0 82px;
}

.footer-widgets .widget-title {
    font-size: 18px;
    margin: 4px 0 24px 0;
}

.footer-widgets .footer-info {
    margin: 2px 0 0 5px;
    list-style: none;
    padding: 0;
}

.footer-widgets .footer-info li {
    position: relative;
    padding: 0 0 17px 30px;
    border: 0;
}

.footer-widgets .footer-info li:before {
    content: "\f041";
    font-family: "FontAwesome";
    color: rgb(65,105,225);
    position: absolute;
    left: 1px;
    top: 0;
}

.footer-widgets .footer-info li.phone:before {
    content: "\f095";
}

.footer-widgets .footer-info li.email:before {
    content: "\f003";
}

.footer-widgets .footer-info li.fax:before {
    content: "\f1ac";
}

/* Widget News */
.widget_news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_news ul li {
    padding: 0;
    border: 0;
    margin-top: 15px;
}

.widget_news .thumb {
    width: 70px;
    float: left;
    margin: 4px 30px 0 0;
}

.widget_news .content {
    overflow: hidden;
}

.widget_news .content h3 {
    font-size: 16px;
    line-height: normal;
    font-weight: 700;
    margin: 0 0 4px;
}

.widget_news .content h3 a {
    color: #3c3f46;
    text-decoration: none;
}

.widget_news .content h3 a:hover {
    color: #e28d23;
}

.widget_news .content .meta {
    font-size: 10px;
    line-height: normal;
    color: #9aa1ac;
    margin-bottom: 1px;
}

/* Widget Tweets */
.widget_tweets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_tweets ul li {
    padding: 0 0 7px 42px;
    position: relative;
    border: 0;
    margin-top: 22px;
}

.widget_tweets ul li:before {
    content: "\f099";
    font-family: "FontAwesome";
    font-size: 20px;
    color: rgb(65,105,225);
    position: absolute;
    left: 0;
    top: 0;
}

.widget_tweets ul li a {
    color: rgb(65,105,225);
    text-decoration: none;
}

.widget_tweets ul li a:hover {
    color: #3c3f46;
}

.widget_tweets ul li .author {
    font-weight: 700;
}

/* Widget Instagram (footer) */
.footer .widget_instagram ul {
    padding: 4px 0;
    list-style: none;
    margin: 0 -7.5px;
}

.footer .widget_instagram ul li .thumb {
    padding: 0 7.5px;
    margin-bottom: 15px;
}

.widget_instagram ul li .thumb span {
    display: inline-block;
    position: relative;
}

.widget_instagram ul li .thumb span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    -webkit-transition: all ease .238s;
       -moz-transition: all ease .238s;
            transition: all ease .238s;
}

.widget_instagram ul li .thumb span:hover:before {
    border-color: #006ab4;
}

/* Bottom */
.bottom {
    text-align: center;
    padding: 42px 0;
    background-color: #fff;
}

.bottom.has-socials {
    padding: 76px 0 42px;    
}

.bottom .socials {
    position: absolute;
    left: 0;
    top: -106px;
    width: 100%;
    text-align: center;
    margin: 0;
    list-style: none;
    padding: 0;
}

.bottom .socials li {
    display: inline-block;
    margin-left: 7px;
}

.bottom .socials li:first-child {
    margin: 0;
}

.bottom .socials li a {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    background-color: rgb(128,128,128);
    -webkit-border-radius: 30px;
       -moz-border-radius: 30px;
            border-radius: 30px;
    text-decoration: none;
}

.bottom .socials li a:hover,
.bottom .socials li.hover a {
    background-color: rgb(65,105,225);    
}

/* Spacer utilities */
.roll-spacer {
    clear: both;
}

.roll-spacer.h15 {
    height: 15px;
}


       .containerx {
            width: 100%;
            max-width: 1200px;
           background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border-radius: 2rem;
            margin:auto;
            max-width: 1000px;
            padding: 3rem;
        }

        .containerx header {
            text-align: center;
            margin-bottom: 3rem;
        }

       .containerx h1 {
            font-size: 3rem;
            font-weight: 700;
            color: rgba(0, 0, 0, 0.6);
            margin-bottom: 0.75rem;
        }

       .containerx .subtitle {
            font-size: 1.5rem;
            font-weight: 300;
            color: white;
        }

        .containerx .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .containerx .card {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

       .containerx .card:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            transform: translateY(-2px);
        }

       .containerx .card h2 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 0.75rem;
        }

       .containerx .card p {
            font-size: 1.125rem;
            color: #6b7280;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .containerx {
                padding: 2rem;
            }

           .containerx h1 {
                font-size: 2rem;
            }

           .containerx .subtitle {
                font-size: 1.125rem;
            }

          .containerx .grid {
                grid-template-columns: 1fr;
            }
        }