
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Google Translate Element */
#google_translate_element {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 1000;
}

/* Navigation */
.navigation {
    margin-top: 10px;
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    padding: 5px 16px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 600;
}

.back-button:hover {
    background: #03548a;
}

/* Header */
.form-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 300;
}

.form-header h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 400;
}

.intro-container {
    position: relative;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.read-more-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Form */
.grant-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.section-description {
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
}

.example-text {
    margin-bottom: 15px;
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

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

/* Hidden form groups */
#otherSpecify,
#fundingDetails,
#friendName,
#otherSourceText {
    display: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

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

/* Currency Input */
.currency-input {
    position: relative;
    display: inline-block;
    width: 200px;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #666;
    z-index: 2;
    pointer-events: none;
}

.currency-input input {
    padding-left: 30px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Checkboxes and Radio buttons */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    flex-shrink: 0;
}

.checkbox-item label,
.radio-item label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Fieldset */
fieldset {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

legend {
    font-weight: 600;
    color: #2c3e50;
    padding: 0 10px;
}

/* Declaration Section */
.declaration-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.declaration-checkbox {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 2px solid #ddd;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(90deg, #2c3e50, #2980b9);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(180deg, #2c3e50, #bdc3c7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}



/* Existing styles remain unchanged above */

/* ✅ Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 90%;
  width: 350px;
}

.modal-content h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.modal-content button {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.modal-content button:hover {
  background-color: #34495e;
}

@media screen and (max-width: 400px) {
  .modal-content {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile Styles */
@media (max-width: 600px) {
    body {
        padding: 8px;
    }
    
    /* Header adjustments */
    .form-header {
        padding: 15px 12px;
    }
    
    .form-header h1 {
        font-size: 1.3em;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .form-header h2 {
        font-size: 1.1em;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .intro-text {
        font-size: 0.85em;
        line-height: 1.3;
        margin-bottom: 6px;
        -webkit-line-clamp: 4;
    }
    
    .intro-text.expanded {
        -webkit-line-clamp: unset;
    }
    
    .form-header > p {
        font-size: 0.85em;
        line-height: 1.3;
    }
    
    .read-more-btn {
        padding: 3px 10px;
        font-size: 0.8em;
    }
    
    /* Form adjustments */
    .grant-form {
        padding: 15px 12px;
    }
    
    .form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 1.1em;
        line-height: 1.2;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-description {
        font-size: 0.9em;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .example-text {
        font-size: 0.8em;
        line-height: 1.3;
    }
    
    /* Form controls */
    .form-group {
        margin-bottom: 20px;
    }
    
    label {
        font-size: 0.9em;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    /* Currency input - Fixed for mobile */
    .currency-input {
        width: 100%;
        display: block;
    }
    
    .currency-symbol {
        left: 8px;
        font-size: 13px;
        z-index: 10;
        background: white;
        padding: 0 2px;
    }
    
    .currency-input input {
        padding-left: 25px;
        z-index: 5;
    }
    
    /* Checkboxes and radio buttons */
    .checkbox-group,
    .radio-group {
        gap: 10px;
    }
    
    .checkbox-item label,
    .radio-item label {
        font-size: 0.9em;
        line-height: 1.3;
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    /* Declaration section */
    .declaration-section {
        padding: 15px;
    }
    
    .declaration-section p {
        font-size: 0.9em;
        line-height: 1.3;
    }
    
    .declaration-checkbox {
        margin-top: 15px;
        padding: 12px;
    }
    
    /* Submit button */
    .form-actions {
        margin-top: 30px;
    }
    
    .submit-btn {
        padding: 10px 35px;
        font-size: 14px;
    }
    
    /* Fieldset */
    fieldset {
        padding: 15px;
    }
    
    legend {
        font-size: 0.9em;
        padding: 0 8px;
    }
}

